﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices.ComTypes;
using System.Text;
using System.Xml.Serialization;

namespace ConsoleApp1
{
    public class Mango
    {
        private int id;
        private string name;
        private int _price;

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        public int  Price
        {
            get
            {
                return _price;
            }
            set
            {
                _price = value;
            }
        }
        
        public void Mango1()
        {
            Console.WriteLine("书的Id：{0} 书的名称：{1} 书的价格：{2}",this.Id,this.Name ,this._price ) ;
            
        }



        public void SetupBook(int id, string name, int price)
        {
            this.id = id;
            this.name = name;
            _price = price;
        }
    }
}
